import { defineStore } from 'pinia'

 const useStore1 = defineStore('store1', {
  state: () => {
    return {
      token:"",
      user:{
        id:0,
        nickName:"游客",
        roles:[],
        tel:"",
        permission:""
      },
      isMenuCollapse:false,
      tempPoItem:[],
      tempOoItem:[]
     
    }
  },
  persist: {
    key:'my-custom-key',
    // storage: sessionStorage,
    storage: localStorage,
  }
})

export default useStore1